package com.qf.common.base.result;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200, "success"),

    SYS_ERROR(40000, "error"),

    PASSWORD_ERROR(40002, "密码错误"),

    INSERT_ERROR(40250, "添加失败"),

    QUERY_ERROR(40350, "查询失败"),

    PAY_ERROR(40250, "支付失败"),

    UPDATE_ERROR(40250, "更新失败"),

    DELETE_ERROR(45003, "删除失败"),

    RECALL_ERROR(45003, "撤回失败"),

    AUDIT_ERROR(45003, "审核失败"),

    USER_PASSWORD_ERROR(40100, "账号密码错误"),

    USER_NOT_EXIST(40103, "账户不存在"),

    USER_LOCKED(40105, "账户已锁定，请联系工作人员"),

    USER_EXIST(40101, "账号已存在"),

    IMG_NOT_EXIST(40881, "请上传头像");

    final int code;
    final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
